home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mm / ccmd / machdep.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-18  |  1.5 KB  |  65 lines

  1. /*
  2.  Copyright (c) 1986, 1990 by The Trustees of Columbia University in
  3.  the City of New York.  Permission is granted to any individual or
  4.  institution to use, copy, or redistribute this software so long as it
  5.  is not sold for profit, provided this copyright notice is retained.
  6.  
  7. */
  8. /*
  9.  * This file contains conditional compilation directives describing the
  10.  * presence or absence of certain common features which are not unique
  11.  * to any one generic environment.
  12.  *
  13.  * Machine dependencies which need to be reflected in the compilation
  14.  * of ccmd applications should go into ccmdmd.h.
  15.  */
  16.  
  17. /* One of these needs to be defined... */
  18. /* #define DIRLIB */        /* e.g. 4.2bsd */
  19. /* #define NDIRLIB */        /* e.g. hp-ux */
  20. /* #define DIRENTLIB */        /* e.g. posix? */
  21. /* #define NODIRLIB */        /* e.g. v7 */
  22.  
  23. /* completion is slow when using Sun's YP facility */
  24. /* #define NO_USERNAME_COMPLETION */
  25. /* #define NO_GROUP_COMPLETION */
  26.  
  27. #include "site.h"
  28.  
  29. #ifdef BSD
  30. #define HAVE_BSTRING
  31. #endif
  32.  
  33. #ifdef SYSV
  34. #define bzero(a,b)    memset((a),0,b)
  35. #define bcopy(a,b,c)    memcpy((b),(a),c)
  36. #define bcmp(a,b,c)    memcmp((a),(b),c)
  37. #define HAVE_BSTRING
  38. #endif
  39.  
  40.  
  41. #if !defined(DIRLIB) && !defined(NDIRLIB) && !defined(DIRENTLIB)
  42. #  ifndef NODIRLIB
  43. #    if BSD
  44. #      define DIRLIB
  45. #    else
  46. #      if hpux
  47. #        define NDIRLIB
  48. #      else
  49. #     if AIX
  50. #       define DIRENTLIB
  51. #     else
  52. #          define NODIRLIB
  53. #     endif
  54. #      endif
  55. #    endif
  56. #  endif
  57. #endif
  58.  
  59. #if defined(HAVE_VOIDSIG)
  60. #define SIG void
  61. #else
  62. #define SIG int
  63. #endif
  64. typedef SIG (*sigval)();
  65.